package demo6;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class Person {
@Resource(name = "sweater")
    private Clothes clothes;

    @Override
    public String toString() {
        return "Person{" +
                "clothes=" + clothes +
                '}';
    }
}
